﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Expect.Core.Test
{
    using Expect.Core.BaseClasses;

    [TestClass]
    public class ActorFixtureTests
    {
        [TestMethod]
        public void ActorFixture_Execution()
        {
            SpecificationDefinition test = new SpecificationDefinition();

            test.AddFixture(fixture =>
                {
                    fixture.WithRow("ActorFixtureImpl");
                    fixture.WithRow("Un test de" , "fixture", " en mode", "fluent");
                });
            
            DefaultSpecificationExecution runner = new DefaultSpecificationExecution();
            runner.Run(this, test);
            if (!test.IsSuccessful)
            {
                Assert.Fail(test.GetMessageForFailedResult());
            }
        }
    }
}
